{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active"><a href="#tab_basic">基础设置</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" id="setting-form" class="form-horizontal form form-validate">
			<div class="panel panel-default">
				<div class="panel-heading">基础设置</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-2 control-label">商户小程序码</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[storeqrcode]" value="0" {if $settings['storeqrcode'] == 0}checked="checked"{/if}> 关闭
							</label>
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[storeqrcode]" value="1" {if $settings['storeqrcode'] == 1}checked="checked"{/if}> 启用
							</label>
							<span class="help-block">默认不开启商户小程序码，要开启商户小程序码务必等小程序上线以后方可生成</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">商户视频全景</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[vp_status]" value="0" {if $settings['vp_status'] == 0}checked="checked"{/if}> 关闭
							</label>
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[vp_status]" value="1" {if $settings['vp_status'] == 1}checked="checked"{/if}> 启用
							</label>
							<span class="help-block">小程序中默认关闭商户视频和全景，开启商户视频和全景务必保证视频和全景域名已设置为业务域名</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">小程序版本</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[liveplay]" value="0" {if $settings['liveplay'] == 0}checked="checked"{/if}> 标准版
							</label>
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[liveplay]" value="1" {if $settings['liveplay'] == 1}checked="checked"{/if}> 直播版
							</label>
							<span class="help-block">上传小程序代码时，所上传的版本，直播版需小程序后台开通直播方可使用</span>
						</div>
					</div>
					{if file_exists(PATH_MODULE.'L304.log')}
					<div class="form-group">
						<label class="col-sm-2 control-label">直播列表背景色</label>
						<div class="col-sm-9">
							<input type="color" class="form-control" name="set[livebgc]" value="{if $settings['livebgc']}{$settings['livebgc']}{else}#F8F8F8{/if}" style="width: 150px">
						</div>
					</div>
					{/if}
					<div class="form-group">
						<label class="col-sm-2 control-label">审核模式</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[examineing]" value="0" {if $settings['examineing'] == 0}checked="checked"{/if}> 关闭
							</label>
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[examineing]" value="1" {if $settings['examineing'] == 1}checked="checked"{/if}> 开启
							</label>
							<span class="help-block">审核模式开启时，商户入驻，动态发布，掌上信息发帖功能将无法使用。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">引导收藏</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[collocStatus]" value="0" {if $settings['collocStatus'] == 0}checked="checked"{/if}> 关闭
							</label>
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[collocStatus]" value="1" {if $settings['collocStatus'] == 1}checked="checked"{/if}> 开启
							</label>
							<span class="help-block">引导用户收藏小程序，官方不提供判断用户是否收藏的参数，已收藏用户也会显示。</span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">顶部颜色</label>
						<div class="col-sm-9">
							<input type="color" class="form-control" name="set[top_bg_color]" value="{if $settings['top_bg_color']}{$settings['top_bg_color']}{else}#FFFFFF{/if}" style="width: 150px">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">文字颜色</label>
						<div class="col-sm-9">
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[top_text_color]" value="0" {if $settings['top_text_color'] != 1}checked="checked"{/if}> 黑色
							</label>
							<label class="radio-inline">
								<input type="radio" class="form-control" name="set[top_text_color]" value="1" {if $settings['top_text_color'] == 1}checked="checked"{/if}> 白色
							</label>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label"></label>
						<div class="col-sm-9">
							<input type="submit" name="submit" lay-submit value="提交" class="btn btn-primary min-width" />
							<input type="hidden" name="token" value="{$_W['token']}" />
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
{php include wl_template('common/footer');}